/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.programm.api.impl;
import za.ac.cput.programm.api.ArraySumTest;
/**
 *
 * @author Dwayne
 */
public class ArraySumImpl implements ArraySumTest
{
    @Override
    public int sum(int[] ar)
    {
        int total = 0;
        for(int i=0;i<ar.length;i++)
        {
            total += ar[i];            
        }
        return total;
    } 
}
